package com.blog.backend.domain;

import com.blog.backend.resp.PictureUrlResp;

import java.text.SimpleDateFormat;
import java.util.Date;

public class BlogPerson {
    private String personId;

    private String personname;

    private Date birthday;

    private String education;

    private String email;

    private String area;

    private String profession;

    private String profile;

    private String skill;

    private PictureUrlResp picture;

    private String birthdayStr;

    public PictureUrlResp getPicture() {
        return picture;
    }

    public void setPicture(PictureUrlResp picture) {
        this.picture = picture;
    }

    public String getPersonId() {
        return personId;
    }

    public void setPersonId(String personId) {
        this.personId = personId == null ? null : personId.trim();
    }

    public String getPersonname() {
        return personname;
    }

    public void setPersonname(String personname) {
        this.personname = personname == null ? null : personname.trim();
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education == null ? null : education.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area == null ? null : area.trim();
    }

    public String getProfession() {
        return profession;
    }

    public void setProfession(String profession) {
        this.profession = profession == null ? null : profession.trim();
    }

    public String getProfile() {
        return profile;
    }

    public void setProfile(String profile) {
        this.profile = profile == null ? null : profile.trim();
    }

    public String getSkill() {
        return skill;
    }

    public void setSkill(String skill) {
        this.skill = skill == null ? null : skill.trim();
    }

    public String getBirthdayStr() {
        SimpleDateFormat format=new SimpleDateFormat("yyyy-MM-dd");
        return format.format(this.birthday);
    }

    public void setBirthdayStr(String birthdayStr) {
        this.birthdayStr = birthdayStr;
    }
}